package com.dy.design_pattern_study.mediator_pattern.dome2.impl;

import com.dy.design_pattern_study.mediator_pattern.dome2.Country;
import com.dy.design_pattern_study.mediator_pattern.dome2.UnitedNations;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-23
 * @Content 伊拉克
 */
public class Iraq extends Country {

    public Iraq(UnitedNations mediator) {
        super(mediator);
    }
    //声明
    public void declare(String message){
        mediator.declare(message, this);
    }

    //获得消息
    public void getMessage(String message){
        System.out.println("伊拉克获得对方信息：" + message);
    }
}
